<include target="header.html" />
<table class="x_table x_table-striped x_table-hover dsTg">
	<caption>
		<strong>All({$tCount})</strong>
		<div class="x_pull-right x_btn-group">
			<button class="x_btn x_active __simple">{$lang->simple_view}</button>
			<button class="x_btn __detail">{$lang->detail_view}</button>
		</div>
	</caption>
	<thead>
		<tr>
			<th scope="col">{$lang->widget_name}</th>
			<th scope="col">{$lang->version}</th>
			<th scope="col">{$lang->author}</th>
			<th scope="col">{$lang->path}</th>
			<th scope="col">{$lang->cmd_generate_code}</th>
			<th scope="col">{$lang->cmd_delete}</th>
		</tr>
	</thead>
	<tbody>
		<tr loop="$widget_list => $widget">
			<td class="title">
				<p><strong>{$widget->title}</strong></p>
				<p>{$widget->description}</p>
				<p cond="$widget->need_update == 'Y'" class="update">
					{$lang->msg_avail_easy_update} <a href="{$widget->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
				</p>
			</td>
			<td>{$widget->version}</td>
			<td>
				<block loop="$widget->author => $author">
					<a cond="$author->homepage" href="{$author->homepage}" target="_blank">{$author->name}</a>
					<block cond="!$author->homepage">{$author->name}</block>
				</block>
			</td>
			<td>{$widget->path}</td>
			<td><a class="x_btn x_btn-link" href="{getUrl('act', 'dispWidgetAdminGenerateCode', 'selected_widget', $widget->widget)}">{$lang->cmd_generate_code}</a></td>
			<td><a class="x_btn x_btn-link" cond="$widget->remove_url" href="{$widget->remove_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a></td>
		</tr>
	</tbody>
</table>
